package com.gmail.bloim.serg.t1052;

import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * User: Администратор
 * Date: 25.04.13
 * Time: 11:18
 * To change this template use File | Settings | File Templates.
 */
public class Program {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        PrintWriter out = new PrintWriter(System.out);
        int pointsNum = in.nextInt();
        Global.init(pointsNum);
        readPoints(in, pointsNum);
//        prepareLines();
        processPoints();
        Line line = searchLongestLine();
        out.print(line.pointSize());
//        printPoints(out);
        out.close();
    }

    private static Line searchLongestLine() {
        int maxSize = 0;
        Line maxLine = null;
        for (Line line : Global.lines) {
            if (line.pointSize() > maxSize) {
                maxLine = line;
                maxSize = line.pointSize();
            }
        }
        return maxLine;
    }

    private static void prepareLines() {
        for (int i = 0; i < Global.points.length - 1; i++) {
            Point point = Global.points[i];
            for (int j = i + 1; j < Global.points.length; j++) {
                Point point2 = Global.points[j];

            }
        }
    }

    private static void processPoints() {
        for (int i = 0; i < Global.points.length; i++) {
            Point point = Global.points[i];
            for (Line line : Global.lines) {
                if (line.contains(point))
                    continue;
                if (line.match(point))
                    line.add(point);
            }
            for (int j = 0; j < Global.points.length; j++) {
                Point point2 = Global.points[j];
                Global.lines.add(new Line(point, point2));
            }
        }
    }


    private static void printPoints(PrintWriter out) {
        for (Point point : Global.points) {
            out.println(point.x + " , " + point.y);
        }
    }

    private static void readPoints(Scanner in, int pointsNum) {
        for (int i = 0; i < pointsNum; i++) {
            int x = in.nextInt();
            int y = in.nextInt();
            Point point = new Point(x, y);
            Global.points[i] = point;
        }
    }
}
